﻿@echo off
IF "%1"=="" ECHO "You MUST pass the API key in the fist parameter" & exit /B

ECHO "--NTLib.Core.csproj"
nuget pack ../Sources/NTLib.Core/NTLib.Core.csproj -IncludeReferencedProjects
ECHO "--NTLib.IOC.csproj"
nuget pack ../Sources/NTLib.IOC/NTLib.IOC.csproj -IncludeReferencedProjects
ECHO "--NTLib.Pipe.csproj"
nuget pack ../Sources/NTLib.Pipe/NTLib.Pipe.csproj -IncludeReferencedProjects
ECHO "--NTLib.Pipe.Network.csproj"
nuget pack ../Sources/NTLib.Pipe.Network/NTLib.Pipe.Network.csproj -IncludeReferencedProjects
ECHO "--NTLib.WPF.csproj"
nuget pack ../Sources/Windows/NTLib.WPF/NTLib.WPF.csproj -IncludeReferencedProjects
ECHO "--NTLib.Application.csproj"
nuget pack ../Sources/NTLib.Application/NTLib.Application.csproj -IncludeReferencedProjects
ECHO "--NTLib.Test.Resources.csproj"
nuget pack ../Testes/NTLib.Test.Resources/NTLib.Test.Resources.csproj -IncludeReferencedProjects

nuget setApiKey "%1" -Source "https://www.nuget.org/api/v2/package"
FOR /F %%i IN ('DIR *.nupkg /B') DO nuget push "%%i" -Source "https://www.nuget.org/api/v2/package"
DEL *.nupkg

